using System.ComponentModel.DataAnnotations;

namespace Universal.Application.Contracts.Dto.ArticleCategory;

/// <summary>
/// 分配或移除子分类
/// </summary>
public record AssignChildrenDto
{
    [Required(ErrorMessage = "分类ID不能为空")]
    public Guid CategoryId { get; set; }

    [Required(ErrorMessage = "子分类ID不能为空")]
    public IEnumerable<Guid> ChildCategoryIds { get; set; } = new List<Guid>();
}